package com.cskaoyan.controller.wx_order_before.exception;

import com.cskaoyan.bean.wx_resp.WxRespVo;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author liXiaoFei
 * @date 2021/10/24 17:30
 */
@ControllerAdvice
public class OrderExceptionControllerAdvice {

    @ExceptionHandler(SubmitOrderException.class)
    public WxRespVo submitOrderException(){
        return WxRespVo.error();
    }

}
